﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

namespace GtsServer.Manage.IISPage.Page
{
    public partial class LoginPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void btnLogin_Click(object sender, EventArgs e)
        {
            string account = ConfigurationManager.AppSettings["UserAccount"];
            string pwd = ConfigurationManager.AppSettings["PassWord"];

            if (account.Equals(txtAccount.Value) && pwd.Equals(txtPwd.Value))
            {
                Session["userAccount"] = account;

                Response.Redirect("~/Page/Chance/ChanceMouldPage.aspx");
            }
        }
    }
}